// 
var mongoose = require("./connect");
var Schema = mongoose.Schema
var roomSchema =new Schema({
    rname:String,   //姓名
    rID:Number,  //房间号
    cost:String,//价格
    issch:Boolean,//是否预约
})
var roomModel = mongoose.model('room',roomSchema) //定义一个操作对应表的，模型对象

module.exports = roomModel